package 接口.案例运动员和教练;

public class TestDemo {
    public static void main(String[] args) {
        //创建对象
        PingPangPlayer ppp=new PingPangPlayer();
        ppp.setName("王浩");
        ppp.setAge(30);
        System.out.println(ppp.getName()+ppp.getAge());
        ppp.eat();
        ppp.study();
        ppp.speaking();

        BaskerballPlayer bp=new BaskerballPlayer("姚明",35);
        System.out.println(bp.getName()+bp.getAge());
        bp.eat();
        bp.study();


    }
}
